from tkinter import *

a= int(input())
b =  int(input())
scale = int(input())
if a < 0 or b < 0 or b + 30 * scale >= 500 or a + 20 * scale >= 500:
    print('размер не подходит по масштабу ')
else:
    root = Tk()
    root.geometry('500x500')
    root.resizable(False, False)
    canvas = Canvas(root, width=500, height=500, bg='white')
    canvas.pack()
    canvas.create_rectangle(a, b, a + 10 * scale, b + 10 * scale, fill='blue')
    canvas.create_rectangle(a, b + 10 * scale, a + 10 * scale, b + 20 * scale, fill='blue')
    canvas.create_rectangle(a + 10 * scale, b + 10 * scale, a + 20 * scale, b + 20 * scale, fill='blue')
    canvas.create_rectangle(a, b + 20 * scale, a + 10 * scale, b + 30 * scale, fill='blue')
root.mainloop()
